public class Student {
    private final String StudentID;
    private final String name;

    public Student(String studentID, String name) {
        StudentID = studentID;
        this.name = name;
    }

    public String getStudentID() {
        return StudentID;
    }

    public String getName() {
        return name;
    }

}
class java2{
    public static void main(String[] args) {
        Student[] stu = new Student[3];
        for (int i = 0; i <stu.length ; i++) {
            stu[i]=new Student("2022000"+i,"学生"+(i+1));
            System.out.println("学号："+stu[i].getStudentID()+"\t姓名"+stu[i].getName());
        }
    }
}
